package com.mojo.pojo;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 * copyright (C), 2013-2021, 广州九尾信息科技有限公司
 */
public class User {
    private String name;
    private int age;
    private List hobby;
    private Set games;
    private Map<String, Object> card;
    private Properties info;
    private String wife;
    private Address address;

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getWife() {
        return wife;
    }

    public void setWife(String wife) {
        this.wife = wife;
    }

    public User() {
    }

    public User(String name, List hobby, Properties info) {
        this.name = name;
        this.hobby = hobby;
        this.info = info;
    }

    //public User(int age) {
    //    System.out.println("User 被创建了。。。");
    //    this.age = age;
    //}
    public List getHobby() {
        return hobby;
    }

    public void setHobby(List hobby) {
        this.hobby = hobby;
    }

    public Set getGames() {
        return games;
    }

    public void setGames(Set games) {
        this.games = games;
    }

    public Map<String, Object> getCard() {
        return card;
    }

    public void setCard(Map<String, Object> card) {
        this.card = card;
    }

    public Properties getInfo() {
        return info;
    }

    public void setInfo(Properties info) {
        this.info = info;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", hobby=" + hobby +
                ", games=" + games +
                ", card=" + card +
                ", info=" + info +
                ", wife='" + wife + '\'' +
                ", address=" + address +
                '}';
    }
}
